package com.tuhu.dai.domain.auth.service;

import java.io.IOException;

/**
 * @author: DaiTao
 * @description:
 * @create: 2025-08-09 17:50
 **/
public interface ILoginService {

    /**
     * 创建登录二维码
     * @return
     */
    String createQrCodeTicket() throws Exception ;

    String checkLogin(String ticket);

    /**
     * 绑定ticket与openid
     * @param ticket
     * @param openid
     */
    void saveLoginState(String ticket, String openid) throws IOException;
}
